<template>
	<view class="bi-example">
		<view class="bi-example__handle" @click="handleHandleClick">样例照片</view>
	</view>
</template>

<script>
import { previewImage } from '@huntianning/miniprogram/utils/util.js'

export default {
	name: 'BiExample',
	props: {
		images: {
			type: Array
		}
	},
	methods: {
		handleHandleClick () {
			if (!this.images || !this.images.length) {
				return
			}
			previewImage({
				urls: this.images
			})
		}
	}
}
</script>

<style lang="less">
.bi-example__handle{
	color: #999;
	font-size: 12px;
}
</style>